# -*- coding: utf-8 -*-
try:
    from setuptools import setup, find_packages
except ImportError:
    from ez_setup import use_setuptools
    use_setuptools()
    from setuptools import setup, find_packages

setup(
    name='crane.server',
    version='0.1',
    description='CRANE API Server',
    author='Bo Xiao, HUST',
    author_email='mail.xiaobo@gmail.com',
    url='',
    install_requires=[
        "Pylons>=1.0",
        "SQLAlchemy>=0.5",
        "repoze.who<=1.99",
        "repoze.what-pylons",
        "repoze.what-quickstart",
        "repoze.who-use_beaker",
        "simplejson",
        "pymongo",
        "celery",
        "mongodb_beaker" ,
        "python-ldap",
        "afpy.ldap",
        "pylibmc",
        "MySQL-Python" ,
        #"eventlet",
        #"gevent",
        "gunicorn"
    ],
    setup_requires=["PasteScript>=1.6.3"],
    packages=find_packages(exclude=['ez_setup']),
    include_package_data=True,
    test_suite='nose.collector',
    package_data={'craneserver': ['i18n/*/LC_MESSAGES/*.mo']},
    #message_extractors={'craneserver': [
    #        ('**.py', 'python', None),
    #        ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
    #        ('public/**', 'ignore', None)]},
    zip_safe=False,
    paster_plugins=['PasteScript', 'Pylons'],
    entry_points="""
    [paste.app_factory]
    main = craneserver.config.middleware:make_app

    [paste.app_install]
    main = pylons.util:PylonsInstaller
    """,
)
